<?php

/* @project : Template
 * @auther  : 青云
 * @date    : 2018/1/10
 * @desc    : 用户控制器
 */


namespace app\admin\controller;

use think\Request;

class Index extends Base
{
    public function index(Request $request)
    {
//        $this->redirect('DataBoard/index');
		return view();
    }

    public function hello($name = 'ThinkPHP5')
    {

        $token        = "kBwoX9rFX9v4zbOT0Gjd_wr65DZ3P_WW";
        $screenID     = "03d1b68faeb09671046d1ef43f588c33";
        $time         = time() * 1000;
        $stringToSign = $screenID . '|' . $time;
        $signature    = urlencode(base64_encode(hash_hmac('sha256', $stringToSign, $token, true)));
        $url          = "http://local.datav.aliyun.com:9999/share/" . $screenID . "?_datav_time=" . $time . "&_datav_signature=" . $signature;

    }
}
